package com.knowif.backend.controller;

import com.knowif.backend.service.OfferInterviewCommentService;
import com.knowif.pojo.OfferInterviewComment;
import com.knowif.system.model.RestBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Date;

@RestController
@RequestMapping("/wechat")
public class OfferInterviewCommentController {

    @Autowired
    OfferInterviewCommentService offerInterviewCommentService;

    /**
     * offer和面试经历的展示页面
     * @return
     */
    @PostMapping("/offer/interview/comment/save")
    public RestBean<?> save(@RequestBody OfferInterviewComment offerInterviewComment){
        offerInterviewComment.setCommentTime(new Date());
        offerInterviewCommentService.saveOfferInterviewComment(offerInterviewComment);
        return RestBean.buildSuccess("添加成功");
    }


}
